#ifndef __SF_H
#define __SF_H

#include <stdint.h>


extern int  sf_sync_start_read( uint32_t stt, uint8_t * rx_buf, int rx_size );
extern int  sf_sync_start_write( uint32_t stt, uint8_t * tx_buf, int tx_size );
extern int  sf_sync_start_nofifo( uint32_t stt );

extern void sf_reg_write(int index, uint32_t value);
extern void sf_reg_read(int index, uint32_t *value);
extern void sf_set_div(uint8_t div);
extern void sf_get_div(uint8_t *div);

extern void  sf_reset( void );
extern void  sf_clear( int choosen );

extern uint32_t sf_hw_get_id( void );



#endif

